package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 访客管理对象 cm_anonymous_come
 * 
 * @author pop404NotFound
 * @date 2021-12-11
 */
public class CmAnonymousCome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 微信id */
    @Excel(name = "微信id")
    private String openid;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realname;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;

    /** 来访者电话 */
    @Excel(name = "来访者电话")
    private String amPhone;

    /** 来访原因 */
    @Excel(name = "来访原因")
    private String story;

    /** 被访电话 */
    @Excel(name = "被访电话")
    private String phone;

    /** 起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "起始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String startDate;

    /** 离开时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String endDate;

    /** 是否同意 */
    @Excel(name = "是否同意")
    private Integer isAgree;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setAmPhone(String amPhone) 
    {
        this.amPhone = amPhone;
    }

    public String getAmPhone() 
    {
        return amPhone;
    }
    public void setStory(String story) 
    {
        this.story = story;
    }

    public String getStory() 
    {
        return story;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setStartDate(String startDate)
    {
        this.startDate = startDate;
    }

    public String getStartDate()
    {
        return startDate;
    }
    public void setEndDate(String endDate)
    {
        this.endDate = endDate;
    }

    public String getEndDate()
    {
        return endDate;
    }
    public void setIsAgree(Integer isAgree) 
    {
        this.isAgree = isAgree;
    }

    public Integer getIsAgree() 
    {
        return isAgree;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("realname", getRealname())
            .append("idcard", getIdcard())
            .append("amPhone", getAmPhone())
            .append("story", getStory())
            .append("phone", getPhone())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("isAgree", getIsAgree())
            .toString();
    }
}
